package cn.wolfcode.cloud.shop.web.feign;

import cn.wolfcode.cloud.shop.domain.Goods;
import cn.wolfcode.cloud.shop.resp.Result;
import cn.wolfcode.cloud.shop.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Set;

/**
 * @author Administrator
 */
@RestController
public class GoodsFeignClient implements GoodsFeignApi {

    @Autowired
    private IGoodsService goodsService;

    @Override
    public Result<List<Goods>> queryByIdSet(Set<Long> idSet) {

        return Result.success(goodsService.queryByIdSet(idSet));
    }
}
